function [ found ] = foundTransition(transitionCode, profileB, window, site)
    found = 0;
    
    for pos = site-((window-1)/2):site+((window+1)/2)
        if profileB(pos) == transitionCode
            found = 1;
            return;
        end
    end
end
